// 基础类型定义
export interface BaseOption {
  id: string;
  name: string;
  color: string;
}

export interface Priority extends BaseOption {}
export interface Status extends BaseOption {}
export interface Assignee extends Omit<BaseOption, 'color'> {
  avatar: string;
}

export interface Task {
  id: string;
  title: string;
  description: string;
  assignee: string;
  priority: Priority;
  status: Status;
  startTime?: string;
  endTime?: string;
  progress: number;
}

export interface TaskGroup {
  title: string;
  tasks: Task[];
  total: number;
  inProgress: number;
  todo: number;
  completed: number;
}

export interface TaskStatistics {
  total: number;
  inProgress: number;
  todo: number;
  completed: number;
}

// API响应类型
export interface ApiResponse<T> {
  code: number;
  data: T;
  message: string;
} 